home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime vr / vrscript.win / feature files / vreffects.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-09-28  |  1.7 KB  |  55 lines

  1. //////////
  2. //
  3. //    File:        VREffects.h
  4. //
  5. //    Contains:    QuickTime video effects support for QuickTime VR movies.
  6. //
  7. //    Written by:    Tim Monroe
  8. //
  9. //    Copyright:    © 1997 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //
  13. //       <1>         12/13/96    rtm        first file
  14. //       
  15. //////////
  16.  
  17. #pragma once
  18.  
  19. // header files
  20. #include <ImageCompression.h>
  21. #include <ImageCodec.h>
  22.  
  23. #include "ComApplication.h"
  24.  
  25. #if TARGET_OS_MAC
  26. #include "MacFramework.h"
  27. #endif
  28.  
  29. #if TARGET_OS_WIN32
  30. #include "WinFramework.h"
  31. #endif
  32.  
  33. #include "VRScript.h"
  34.  
  35.  
  36. // constants
  37. #define kSourceOneName        FOUR_CHAR_CODE('srcA')
  38. #define kSourceTwoName        FOUR_CHAR_CODE('srcB')
  39.  
  40. #define kDefaultNumSteps    50        // the number of steps in a transition
  41. #define kDoIdleStep            10        // the number of steps we take before giving scene-wide sound-only movies some idle time
  42.  
  43.  
  44. // function prototypes
  45. void                        VREffects_InitWindowData (WindowObject theWindowObject);
  46. void                        VREffects_DumpWindowData (WindowObject theWindowObject);
  47. Boolean                        VREffects_DoIdle (WindowObject theWindowObject);
  48. VRScriptTransitionPtr        VREffects_GetTransitionEffect (WindowObject theWindowObject, UInt32 fromNodeID, UInt32 toNodeID);
  49. QTAtomContainer                VREffects_MakeEffectDescription (long theEffectType, long theEffectNum, OSType theSourceName1, OSType theSourceName2);
  50. ImageDescriptionHandle        VREffects_MakeSampleDescription (long theEffectType, short theWidth, short theHeight);
  51. OSErr                        VREffects_SetupTransitionEffect (WindowObject theWindowObject, UInt32 fromNodeID, UInt32 toNodeID);
  52. OSErr                        VREffects_RunTransitionEffect (WindowObject theWindowObject);
  53. void                        VREffects_DumpEntryMem (VRScriptTransitionPtr theEntry);
  54.  
  55.